Mega Code Archive

Categories
1) Android
2) ASP.Net
3) ASP.Net Tutorial
4) C
5) C Tutorial
6) C#
7) C# Book
8) C# by API
9) C# Tutorial
10) C++
11) C++ Tutorial
12) Delphi
13) Flash ActionScript
14) Flex
15) Java
16) Java Book
17) Java by API
18) Java Tutorial
19) JavaScript DHTML
20) JavaScript Reference
21) JavaScript Tutorial
22) MSOfficeExcel 2007 Tutorial
23) MSOfficePowerPoint 2007 Tutorial
24) MSOfficeWord 2007 Tutorial
25) MSSQL
26) MSSQL Tutorial
27) MySQL
28) MySQL Tutorial
29) Oracle PLSQL
30) Oracle PLSQL Tutorial
31) Perl
32) Php
33) PostgreSQL
34) Python
35) Python Tutorial
36) Ruby
37) Silverlight
38) VB.Net
39) VB.Net by API
40) VB.Net Tutorial
41) Visual C++ .NET
42) VisualBasic Script
43) XML
44) XML Tutorial
 
Ruby
1) Active Record
2) Array
3) CGI
4) Class
5) Collections
6) Database
7) Date
8) Design Patterns
9) Development
10) File Directory
11) GUI
12) Hash
13) Language Basics
14) Method
15) Network
16) Number
17) Rails
18) Range
19) Reflection
20) Statement
21) String
22) Threads
23) Time
24) Tk
25) Unit Test
26) Windows Platform
27) XML
Active Record
1) A find_or_create_by_ dynamic finder
2) Account destroy_all
3) ActiveRecord infers database table names based on class names
4) Add record to database with save method
5) Aggregate function and group by
6) Connect to MySql
7) Connection string for Oracle
8) Delete a record with destroy
9) Delete the associated record from the database
10) Find by column name
11) Find by conditions
12) Find first or find all
13) Find many values
14) Find with AND
15) Find with conditions
16) Find with OR
17) Find_by_sql
18) Group by clause
19) Id is default for autoincrease
20) Id is default for find(1)
21) If you want table names to be singular instead of plural, you can set the configuration parameter pluralize_table_names
22) If your primary key column is not named simply id, you can override this from within the class definition
23) Indicate table name in ActiveRecord
24) Left join
25) Left join on a column
26) Limit offset
27) PostgreSQL Connection Parameters
28) Set up one to many map with has many
29) Setup relation ship between one to many map with belongs_to
30) SQL Server Parameters
31) SQLite Parameters
32) Sybase Parameters
33) The
34) Transactions with ActiveRecord
35) Update a record
36) Update with update_attribute